#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:多线程.py
# author: 马国鑫
# datetime:2022/3/28 18:19
# software: PyCharm

"""
this is function  description 
"""

# import module your need
import threading
import time

def dance():
    for i in range(5):
        print('跳舞',i)
        time.sleep(1)


def sing():
    for i in range(5):
        print('唱歌',i)
        time.sleep(1)


if __name__ == '__main__':
    my_dance = threading.Thread(target=dance)
    my_sing = threading.Thread(target=sing)

    my_dance.start()
    time.sleep(0.1)
    my_sing.start()
